package com.cnhis.drgs.core.dao.mysql;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class MySqlPoolDbHelper extends MySqlDbHelper {

    private DataSource dataSource;

    public MySqlPoolDbHelper(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Connection getConnection() {
        try {
            return dataSource.getConnection();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }


}
